package com.hermeneute.fsa;


//public class FSTPivot  extends Vector{
public class FSTPivot {
  int number;
  FSTEvent event;

  FSTPivot(int n,FSTEvent e) {
      //add(new Integer(n));
      //add(new Character(e.getIn()));
      //add(new Character(e.getOut()));
      number = n; 
      event = e;
  }

 FSTPivot(int n,char i, char o) {
     //add(new Integer(n));
     //add(new Character(i));
     //add(new Character(o));
      number = n; 
      event = new FSTEvent(i,o);
  }
  
  FSTEvent getEvent(){ 
      return event; 
  }
  int getNumber() { 
      return number; 
  }
  void setNumber(int n) { 
      number = n; 
  }

    public boolean equals (Object piv) { 
	return 
	    (event.getIn() == ((FSTPivot)piv).getEvent().getIn()) && 
	    (event.getOut() == ((FSTPivot)piv).getEvent().getOut()) && 
	    (number == ((FSTPivot)piv).getNumber()); 
    }

    public int hashCode() {
	return (int)event.getIn()+(int)event.getIn()+number;
    }


}
